package com.invoicerecognition.backend.controller.teacher;

import com.alibaba.fastjson.JSONObject;
import com.invoicerecognition.backend.service.teacher.GetStudentInvoiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetStudentInvoiceController {

    @Autowired
    private GetStudentInvoiceService getStudentInvoiceService;

    @GetMapping("/api/teacher/student-invoice")
    public JSONObject getStudentInvoice(@RequestParam int page) {
        return getStudentInvoiceService.getStudentInvoice(page);
    }

}
